﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class aspnet_testPargrameDir_site_ValidateCode : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string code = Tong.ValidateCode.MakeCode(5);
        Session["ValidateCode"] = code;
        Response.ClearContent();

        Response.ContentType = "image/Gif";



         byte[] ms = Tong.ValidateCode.CreateCodeImg(code);

        if (null != ms)
        {

            Response.BinaryWrite(ms);

        }
    }
}